<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ include file="/common/include/page.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title>Insert title here</title>
	</head>
	<body>
		<table width="80%" align="center" border="1">
			<tr>
				<td>序号</td>
				<td>角色</td>
				<td>邮箱</td>
				<td>状态</td>
				<td>时间</td>
			</tr>
			<c:forEach items="${requestScope.adminsList }" var="admins" varStatus="stat">
				<tr>
					<td>${stat.count }</td>
					<%-- <td>${admins.role.name }</td> --%>
					<td>
						<%-- ${admins.email }--->${fn:indexOf(admins.email,"@")}-->${fn:substring(admins.email,3,6)}</br> --%>
						${fn:substring(admins.email,0,fn:indexOf(admins.email,"@") - 3)}***${fn:substring(admins.email,fn:indexOf(admins.email,"@"),fn:length(admins.email))}</br>
						<%-- <c:set value="${fn:indexOf(admins.email,'@')}" var="ind"/>
						<c:set value="${fn:length(admins.email)}" var="length"/>
						${fn:substring(admins.email,0,ind - 3)}***${fn:substring(admins.email,ind,length)}</br> --%>
					</td>
					<td>${admins.status }</td>
					<td><fmt:formatDate value="${admins.createTime }" pattern="yyyy-MM-dd HH:mm:ss"/></td>
				</tr>
			</c:forEach>
		</table>
	</body>
</html>